//3.定义猫类继承动物类
//行为:eat(String something)方法,逮老鼠catchMouse方法(无参数)
public class Cat extends Animal{
    @Override
    public void eat(String something) {
        System.out.println(super.getColor()+"的"+super.getAge()+"岁的猫在吃"+something);
    }
    public void catchMouse(){
        System.out.println("猫在抓老鼠");
    }

    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }
}
